package com.xdap.pg.exam.dto;

import java.util.List;
import java.util.Objects;

public class ExamQuestionDto implements java.io.Serializable {
    private static final long serialVersionUID = 6260496938374541793L;
    private String siteName;
    private List<String> area;
    private Integer quality;
    private Integer stewardship;
    private String version;

    public ExamQuestionDto() {
    }

    public String getSiteName() {
        return siteName;
    }

    public void setSiteName(String siteName) {
        this.siteName = siteName;
    }

    public List<String> getArea() {
        return area;
    }

    public void setArea(List<String> area) {
        this.area = area;
    }

    public Integer getQuality() {
        return quality;
    }

    public void setQuality(Integer quality) {
        this.quality = quality;
    }

    public Integer getStewardship() {
        return stewardship;
    }

    public void setStewardship(Integer stewardship) {
        this.stewardship = stewardship;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ExamQuestionDto that = (ExamQuestionDto) o;
        return Objects.equals(siteName, that.siteName) && Objects.equals(area, that.area) && Objects.equals(quality, that.quality) && Objects.equals(stewardship, that.stewardship) && Objects.equals(version, that.version);
    }

    @Override
    public int hashCode() {
        return Objects.hash(siteName, area, quality, stewardship, version);
    }

    @Override
    public String toString() {
        return "ExamQuestionDto{" +
                "siteName='" + siteName + '\'' +
                ", area=" + area +
                ", quality=" + quality +
                ", stewardship=" + stewardship +
                ", version='" + version + '\'' +
                '}';
    }
}
